extends Node2D
class_name PlayerBrand
onready var healthBar=$healthBar
onready var label_name=$label_name
onready var label_lvl=$black_circle/label_lvl
onready var expCircle=$black_circle/expCircle
func _ready():
	expCircle.material=expCircle.material.duplicate()
	pass
func set_name(v:String):
	label_name.text=v
	pass
func set_health(v:float):
	v=clamp(v,0,1)
	healthBar.set_value(v)
	pass
func set_lvl(v):
	label_lvl.text=String(v)
	pass
func set_exp(v:float):
	v=clamp(v,0,1)
	(expCircle.material as ShaderMaterial).set_shader_param('fill_ratio',v)
	pass
